import request from '@/utils/request'

// 查询订单总览列表
export function listBeyOrder(query) {
  return request({
    url: '/behindOrder/BeyOrder/list',
    method: 'get',
    params: query
  })
}

// 查询订单总览详细
export function getBeyOrder(orderId) {
  return request({
    url: '/behindOrder/BeyOrder/' + orderId,
    method: 'get'
  })
}

// 新增订单总览
export function addBeyOrder(data) {
  return request({
    url: '/behindOrder/BeyOrder',
    method: 'post',
    data: data
  })
}

// 修改订单总览
export function updateBeyOrder(data) {
  return request({
    url: '/behindOrder/BeyOrder',
    method: 'put',
    data: data
  })
}

// 删除订单总览
export function delBeyOrder(orderId) {
  return request({
    url: '/behindOrder/BeyOrder/' + orderId,
    method: 'delete'
  })
}
